<template>
<div>
    <h3>dfjdhfjdf</h3>

    <button @click="send">传递给父组件</button>
</div>
</template>

<script setup lang="ts">

import {ref,defineEmits} from "vue"

const emit = defineEmits(["sendFun"])
const send = () =>{
    emit("sendFun","子组件数据")
}
</script>